home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks '96 / Adobe Illustrator Plug-ins / AIQuickCapture Project / includes / raster utils.h < prev   
Encoding:
C/C++ Source or Header  |  1996-06-22  |  1.2 KB  |  39 lines  |  [TEXT/CWIE]

  1. /* ---------------------------------------------------------------------------
  2.  
  3.     raster utils.h
  4.  
  5.     Copyright (c) 1995-6 Adobe Systems Incorporated
  6.     All Rights Reserved
  7.     
  8.    --------------------------------------------------------------------------- */
  9.  
  10. #include "AIRaster.h"
  11.  
  12. #define kMyOffscreenErr '!Off'
  13.  
  14.  
  15. typedef struct {
  16.  
  17.     GWorldPtr                 fWorld;            // pass this in to newRasterForGWorld
  18.     // Scratch Fields
  19.     Rect                    fRasterBounds;  // filled out by newRasterForGWorld
  20.     int16                    fColorSpace;    // passed into CreateGWorldTile
  21.     Fixed                    fScale;
  22.     FixedRect                fSelectionBounds;
  23.  
  24.     Slice                    fRasterSlice;
  25.     Slice                    fWorldSlice;
  26.      Tile                    fWorldTile ;
  27.          
  28. } MakeGWorldTileRequest;
  29.     
  30.  
  31.  
  32. extern FXErr newRasterArtForGWorld( GWorldPtr theWorld, Fixed scale, 
  33.             MakeGWorldTileRequest *request, AIArtHandle *newRaster );
  34. extern FXErr CreateGWorldTile( MakeGWorldTileRequest *request );
  35. extern FXErr GetColorSpaceDepth( int16 colorSpace, int16 *depthPointer );
  36. extern FXErr createOffscreen( GWorldPtr *offscreen, Rect *bounds, short depth );
  37. extern void disposeOffscreen( GWorldPtr *offscreen );
  38. extern FXErr copyGWorldToRasterArt( MakeGWorldTileRequest *request, AIArtHandle destRaster );
  39.